goog.provide('tauge.ui.LoginForm');
goog.require('goog.dom');
goog.require('goog.dom.DomHelper');
goog.require('goog.ui.Component');
goog.require('goog.ui.LabelInput');
goog.require('goog.ui.CustomButton');

/**
  * Login Form
  * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper
  * @extends {goog.ui.Component}
  * @constructor
  */
tauge.ui.LoginForm=function(opt_domHelper)
{
	goog.ui.Component.call(this, opt_domHelper);
};
goog.inherits(tauge.ui.LoginForm,goog.ui.Component);


/**
 * @private
 */
tauge.ui.LoginForm.prototype.txtUsername_ = null;
/**
 * @private
 */
tauge.ui.LoginForm.prototype.li_txtUsername_ = null;

/**
 * @private
 */
tauge.ui.LoginForm.prototype.txtPassword_ = null;
/**
 * @private
 */
tauge.ui.LoginForm.prototype.li_txtPassword_ = null;

/**
 * @private
 */
tauge.ui.LoginForm.prototype.cmdLogin_ = null;


tauge.ui.LoginForm.prototype.getLoginInformation=function()
{
}


/**
  * Create Login Form
  * @override
  */
 tauge.ui.LoginForm.prototype.createDom = function(){
	this.txtUsername_ = this.getDomHelper().createDom(
				'input', {'autocomplete': 'off'});	
	
	this.txtPassword_ = this.getDomHelper().createDom(
				'input', {'type':'password','autocomplete': 'off'});
	
	var dom_cmdLogin = this.getDomHelper().createDom('button');
	this.cmdLogin_ = new goog.ui.CustomButton('sign in');
	this.cmdLogin_.render(dom_cmdLogin);
	
	this.setElementInternal(this.getDomHelper().createDom('div',{'class':'LoginForm'},this.txtUsername_, this.txtPassword_, dom_cmdLogin));
	
	this.li_txtUsername_ = new goog.ui.LabelInput('Username');
	this.li_txtUsername_.decorate(this.txtUsername_);	
	this.li_txtPassword_ = new goog.ui.LabelInput('Password');
	this.li_txtPassword_.decorate(this.txtPassword_);				
 }
 
 
/** @override */
tauge.ui.LoginForm.prototype.enterDocument = function() {
  tauge.ui.LoginForm.superClass_.enterDocument.call(this);
	//register handler here
};

/** @override */
tauge.ui.LoginForm.prototype.exitDocument = function() {
  tauge.ui.LoginForm.superClass_.exitDocument.call(this);
	//dispose handler here
};
 
/** @override */
tauge.ui.LoginForm.prototype.disposeInternal = function() {
  tauge.ui.LoginForm.superClass_.disposeInternal.call(this);
	//dispose control here
};
 
 
